<?php
class sales_ctl_admin_sales extends desktop_controller{
     function index(){
        $this->title = '销售单查询';        
        $filter = "sale_bn,iostock_bn,column_originalbn,shop_id,column_shopbn,branch_id,column_branchbn,member_id,sale_amount,discount,delivery_cost,additional_costs,deposit,sale_time,pay_status,operator,memo";
        // 发货单号 店铺编号  仓库编号 
        $params = array(
            'title'=>$this->title,
            'use_buildin_recycle'=>false,
            'use_buildin_export'=>true,
            'use_buildin_filter'=>true,
            'orderBy'=>'sale_time desc',
            'finder_cols'=>$filter,
        );
        $this->finder('sales_mdl_sales',$params);
    }
}